home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / Sample Printer Drivers 1.1.3 < prev   
Encoding:
Text File  |  1995-10-17  |  3.4 KB  |  63 lines  |  [TEXT/ttxt]

  1.  
  2. Sample Printer Drivers Notes 1.1.3
  3. 17 October 1995
  4.  
  5.  
  6. This folder contains sample code for 10 functioning and buildable printer drivers, as well as another document containing routines for handling status messages and dialogs from a QuickDraw GX printer driver or printing extension.
  7.  
  8. This folder contains:
  9.  
  10. • Generic LaserWriter
  11. Sample printer driver for a generic LaserWriter printer.
  12.  
  13. • ImageWriter
  14. Sample printer driver for the ImageWriter printer.
  15.  
  16. • ImageWriterLQ (alt. rdip)
  17. Sample printer driver for the ImageWriter LQ printer which uses different halftones than the shipping LQ driver.
  18.  
  19. • LaserWriterIIsc (New GX v1.1)
  20. Sample printer driver for the LaserWriter IISC printer.
  21.  
  22. • HPXL
  23. Sample printer driver for the HPXL - PaintJet XL plotter.
  24.  
  25. • CustomWriter GX
  26. CustomWriter GX is a QuickDraw GX printer driver that implements both custom communications code and custom buffering code. The CustomWriter GX printer driver creates 32-bit deep, 72 dpi PICT files for each page of a document it "prints."  This sample code is a companion to the Print Hints column in issue #21 of develop magazine, which covers custom I/O and custom buffering in depth.  version 1.0.4 now builds under MPW or Metrowerks.  It provides a good example of how to store driver global in the Message Handler Instance Context.
  27.  
  28. • Scanning Generic LaserWriter
  29. Same as "Generic LaserWriter" above, but this one expands the GX PostScript 'scan' resource handling to support developer defined status alerts and messages.
  30.  
  31. • Generic LW "30 sec Alert"
  32. Same as "Generic LaserWriter" above, but this one puts up an alert before opening the printer connection.  If you don't click ok, the dialog is automatically torn down for you after 30 seconds.  This is obviously an alert example.
  33.  
  34. • LaserWriter--custom dialogs
  35. Same as "Generic LaserWriter" above, but this one has customized old application dialogs.
  36.  
  37. • ImageWriter--Chooser snooper
  38. Same as "ImageWriter, but this one shows how to read the value of the Chooser's pop-up menu.  YOU MUST INSTALL A DEBUGGER IF YOU USE THIS DRIVER!!  It drops into the debugger to show you the current value of the Chooser menu.
  39.  
  40. • ImageWriter--custom dialogs
  41.  
  42. • ImageWriter--DTP renamer
  43. Same as "ImageWriter, but this sample shows you how you can rename desktop printers as they're created.  This is useful if you don't care for the default implementation that QuickDraw GX uses.
  44.  
  45. All drivers can be easily built by changing one line at the top of the respective "xxx.make" file.  You should change the indicated line to reference the QuickDraw GX interface files on your drive (or the seed CD).  To build a sample, set MPW's directory to the appropriate folder,  and then select the "Build" menu item.  In the dialog, enter the name of the built printer driver.
  46.  
  47. • Printer Status Routines -
  48. This file contains routines and resources that demonstrate how to use status dialogs and status messages from within a QuickDraw GX printer driver.  The sample routines cover:
  49.    Writing a status string to the desktop printer window.
  50.    Implementing an interactive "Manual Feed" alert.
  51.    Implementing an interactive "Printer Not Responding" alert.
  52.    Implementing an interactive "Plotter Carousel Change" alert.
  53. The "Printer Status Routines" file is filled with information that can help you design your own status dialog routines, even if you need to implement an alert other than one of those listed above.
  54.  
  55.  
  56.  
  57.  
  58.  
  59. All files contained in this folder are:
  60. ©Copyright 1995 Apple Computer, Inc. All rights reserved.
  61.  
  62. (10/17/95 DH)
  63.